<div id="home_header">
  <nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse"
                id="navbar-collapse">
          <span class="sr-only">切换导航</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        {if $action=='document' || $action=='rewrite_document'}
        <i class="fa fa-bars"></i>
        {/if}
        <a class="navbar-brand normal-link" href="{$url_home|htmlentities}">
          {if $web_title_type==2 && isset($project) && $project['icon_image']}
            <img src="{:cdnurl($project.icon_image)}" class="img-logo" title="{$site.name|htmlentities}">
          {else}
            <span class="title">{$site.name|htmlentities}</span>
          {/if}
        </a>
      </div>
      <div class="collapse navbar-collapse" id="navbar-header-collapse">
        <ul class="nav navbar-nav navbar-right">
          {foreach name="navs" item="vo" key="k"}
            {if isset($vo['sons']) && $vo['sons']}
              <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  {$k|htmlentities} <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                  {foreach name="$vo['sons']" item="son" }
                    <li ><a href="{$son.url|htmlentities}" {if $son['target']=='blank'} target="_blank" {/if}>{$son.name|htmlentities}</a></li>
                  {/foreach}
                </ul>
              </li>
            {else}
              <li ><a href="{$vo.url|htmlentities}" {if $vo['target']=='blank'} target="_blank" {/if}>{$vo.name|htmlentities}</a></li>
            {/if}
          {/foreach}
          <li class="search-input search-block">
            <div class="input-group" id="search">
              <input class="form-control search-kw-input" placeholder="输入关键词查找" {if isset($search) && $search} value="{$search|htmlentities}" {/if}><i class="fa fa-search"></i>
              <i class="fa fa-remove" style="display: none;"></i>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </nav>
</div>
